package com.dcrzl.gazgmh.common.utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
public class PageInfo<T>  {
    private Integer total;

    private List<T> list;

    public PageInfo() {}
    /**
     * 分页
     *
     * @param list  列表数据
     * @param total 总记录数
     */
    public PageInfo(List<T> list, Integer total) {
        this.list = list;
        this.total = total;
    }
}
